// Unless explicitly stated otherwise all files in this repository are licensed
// under the MIT License.
// This product includes software developed at Guance Cloud (https://www.guance.com/).
// Copyright 2021-present Guance, Inc.

package datakit

func Enabled(name string) bool {
	if enabled, ok := allInputs[name]; !ok {
		return false // not exist
	} else {
		if EnableUncheckInputs {
			return true
		} else {
			return enabled
		}
	}
}

var (
	EnableUncheckInputs = false

	allInputs = map[string]bool{
		"cshark":                 false,
		"mock":                   false,
		"qyt_all":                false,
		"secureexec":             false,
		"demo":                   false,
		"clickhousev1":           true,
		"activemqlog":            true,
		"aliyunactiontrail":      true,
		"aliyuncdn":              true,
		"aliyuncms":              true,
		"aliyuncost":             true,
		"aliyunddos":             true,
		"aliyunfc":               true,
		"aliyunlog":              true,
		"aliyunobject":           true,
		"aliyunprice":            true,
		"aliyunrdsslowlog":       true,
		"aliyunsecurity":         true,
		"ansible":                true,
		"apache":                 true,
		"awsbill":                true,
		"awscloudtrail":          true,
		"azure_monitor":          true,
		"baiduIndex":             true,
		"binlog":                 true,
		"cloudflare":             true,
		"cloudprober":            true,
		"confluence":             true,
		"container":              true,
		"containerd":             true,
		"coredns":                true,
		"cpu":                    true,
		"csvmetric":              true,
		"csvobject":              true,
		"ddtrace":                true,
		"dialtesting":            true,
		"disk":                   true,
		"diskio":                 true,
		"docker_containers":      true,
		"docker":                 true,
		"dockerlog":              true,
		"druid":                  true,
		"ebpf":                   true,
		"elasticsearch":          true,
		"envoy":                  true,
		"etcd":                   true,
		"expressjs":              true,
		"external":               true,
		"file_collector":         true,
		"flinkv1":                true,
		"fluentd":                true,
		"ginlog":                 true,
		"gitlab":                 true,
		"goruntime":              true,
		"harborMonitor":          true,
		"host_processes":         true,
		"hostdir":                true,
		"hostobject":             true,
		"httpjson":               true,
		"httpPacket":             true,
		"httpProb":               true,
		"httpstat":               true,
		"huaweiyunces":           true,
		"huaweiyunobject":        true,
		"iis":                    true,
		"influxdb":               true,
		"jenkins":                true,
		"jira":                   true,
		"jvm":                    true,
		"k8sobject":              true,
		"kafka":                  true,
		"kafkalog":               true,
		"kong":                   true,
		"kubernetes":             true,
		"lighttpd":               true,
		"logfwdserver":           true,
		"logging":                true,
		"logstreaming":           true,
		"mem":                    true,
		"memcached":              true,
		"mongodb_oplog":          true,
		"mongodb":                true,
		"mysql":                  true,
		"mysqlog":                true,
		"neo4j":                  true,
		"net":                    true,
		"nfsstat":                true,
		"nginx_plus_api":         true,
		"nginx_plus":             true,
		"nginx_upstream_check":   true,
		"nginx_vts":              true,
		"nginx":                  true,
		"nginxlog":               true,
		"nsq":                    true,
		"oracle":                 true,
		"oraclemonitor":          true,
		"opentelemetry":          true,
		"postgresql_replication": true,
		"postgresql":             true,
		"processes":              true,
		"prom":                   true,
		"proxy":                  true,
		"puppetagent":            true,
		"rabbitmq":               true,
		"redis":                  true,
		"redislog":               true,
		"scanport":               true,
		"self":                   true,
		"sensors":                true,
		"skywalking":             true,
		"smart":                  true,
		"solr":                   true,
		"sqlserver":              true,
		"squid":                  true,
		"ssh":                    true,
		"statsd":                 true,
		"swap":                   true,
		"system":                 true,
		"systemd":                true,
		"tailf":                  true,
		"tencentcms":             true,
		"tencentcost":            true,
		"tencentobject":          true,
		"tidb":                   true,
		"timezone":               true,
		"tomcat":                 true,
		"jaeger":                 true,
		"tracerouter":            true,
		"zipkin":                 true,
		"traefik":                true,
		"ucloud_monitor":         true,
		"wechatminiprogram":      true,
		"windows_event":          true,
		"wmi":                    true,
		"yarn":                   true,
		"zabbix":                 true,
		"zaplog":                 true,
		"consul":                 true,
		"prom_remote_write":      true,
		"pythond":                true,
		"beats_output":           true,
	}
)
